import Request from '@/utils/request/request-util';

/**
 * 登录退出接口
 *
 * @author fengshuonan
 * @date 2021/4/1 14:34
 */
export class AppApi {
    /**
     * 列表
     */
    static list(params) {
        return Request.get('/airag/app/list', params);
    }

    static saveApp(params) {
        return Request.post('/airag/app/edit', params);
    }

    static deleteApp(params) {
            return Request.delete('/airag/app/delete', params);
    }

    static queryFlowById(params) {
        return Request.get('/airag/flow/queryById', params);
    }

    /**
     * 应用编排
     * @param params
     */
    static promptGenerate(params) {
        return Request.get('/airag/app/prompt/generate', params);
    }


}
